#include<stdio.h>
#include<stdlib.h>
#include "dominion.h"
#include "dominion_helpers.h"

int main(int argc, char *argv[])
{
    struct gameState* game;
    int *carddeck;

    game = newGame();
    carddeck = kingdomCards(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
    initializeGame(2, carddeck, 24, game);
    game->handCount[1] = 3;

    smithy_call(1, game, 2);

    //Hand started with 3, added 3, discarded smithy, should now be at 5
    if (game->handCount[1] == 5)
        printf("smithy_call test PASSED.\n");
    else {
        printf("smithy_call test FAILED.\n");
        printf("handcount is %i but should be 5\n", game->handCount[1]);
    }

    return 0;
}
